package com.lagou.rpc.consumer.zk;

import org.I0Itec.zkclient.ZkClient;

import java.util.List;

/**
 * @Description: TODO
 * @Author 50705 2021/11/19
 **/
public class ZKClientUtil {

    public static String zkInfo = "10.35.227.208:2181";

    public static String pathPre = "/ly-zkClient/rpc";

    public static int Server_Port = 8899;

    public static ZkClient zkClient;

    static {
        zkClient = new ZkClient(zkInfo);
        List<String> children = zkClient.getChildren(ZKClientUtil.pathPre);

    }

    private ZKClientUtil(){

    }

    public static ZkClient getInstance(){
        return zkClient;
    }

}
